<div class="middle-box text-center loginscreen  animated fadeInDown">
	<div>
		<div>
			<h3 class="logo-name"><img src="/static/img/login-logo.png"></h3>
		</div>
		<h3>欢迎使用XXX后台管理系统</h3>
		<?php $form = \yii\widgets\ActiveForm::begin(['action' => 'login', 'options' => ['class' => 'm-t']]);?>
		<?php echo $form->field($model, 'username')->textInput(['class' => 'form-control', 'placeholder' => '用户名']); ?>
		
		<?php echo $form->field($model, 'passWord')->passwordInput(['class' => 'form-control', 'placeholder' => '密码']); ?>
		
		<?php echo $form->field($model, 'verifyCode')->textInput(['class' => 'form-control', 'placeholder' => '请输入验证码']); ?>
		<div class="form-group field-admin-verifycode required" style="width:180px;">
			<div><a href="javascript:;" title="点击换图" ><img src="/admin/public/code?v=564e9b9d57282" id="captchaimg" onclick="this.src='/admin/public/code?&v='+Math.random()" ></a>&nbsp;&nbsp;<a id="yw0_button" href="javascript:;" onclick="freshCode();">换一张</a></div>
			
			<!-- <div class="help-block"><a href="/admin/public/forget"><small>忘记密码了？</small></a></div> -->
		</div>
		<?php echo \yii\helpers\Html::submitButton('登 录', ['class' => 'btn btn-primary block full-width m-b']); ?>

		<p class="text-muted text-center">
			<a href="/admin/public/forget"><small>忘记密码了？</small></a> <!-- | <a href="register.html">注册一个新账号</a> -->
		</p>
		<?php \yii\widgets\ActiveForm::end();?>
	</div>
</div>
<script type="text/javascript">
	function freshCode() {
		var oDiv = document.getElementById('captchaimg'); 
		oDiv.click();
	}

</script>